package com.yazi.mxz.common.exception;

import com.myframework.smhj.common.exception.MyException;


public class MxzException extends MyException {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1757308124289940345L;
	/**
	 * 错误码
	 */
	public Code code;
	
	public MxzException() {
		super();
	}

	public MxzException(String message) {
		super(message);
	}
	
	public MxzException(Code code, String message) {
		super(message);
		this.code = code;
	}
	
	public MxzException(Code code) {
		super(code.getText());
		this.code = code;
	}
	
	public Code getCode() {
		return code;
	}

	public void setCode(Code code) {
		this.code = code;
	}

}
